﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Library_Code.DAL;

namespace Library_Code.BIZ
{
   public class LOAISP
    {

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int IdLoaiSP { get; set; }
        public string TenLoai { get; set; }
        public string MoTa { get; set; }
        public virtual List<SANPHAM> SANPHAMs { get; set; }

       //Phuong thuc
        LoaiSPDAL dal = new LoaiSPDAL();
        
        public int ThemLoaiSP(LOAISP loaisp)
        {
            return dal.ThemLoaiSP(loaisp);
        }
    }
}
